﻿@model Downloader.Framework.Queries.RecordList<Downloader.Web.Controllers.ViewModels.ArticleImgViewModel>
@{  
    Layout = "~/Views/Shared/_ArticleList.cshtml";
}

<div class="subTit">
    <span>您的位置： <a href="/">首页</a> &gt; <a href="#">产品展示</a> </span>
</div>
<div class="subContent">
    <div class="subContentMaring">
        <div class="subPicList">
            <ul>
                @{
                    foreach (var article in Model)
                    {
                        <li>
                            <div class="proLeftImg"> 
                                <p>
                                    <a href="@Url.Action("ArticleDetail","ArticleDetail",new{Id=@article.Id})" title="@article.Title">
                                        <img width="155" height="129" src="@article.ImgUrl"/>
                                    </a>
                                </p>
                            </div>
                            <div class="proRightText">
                                <h2>
                                    <a href="@Url.Action("ArticleDetail","ArticleDetail",new{Id=@article.Id})" title="@article.Title">@article.Title</a>
                                </h2>
                                @Html.Raw(@article.ContentText)
                                <br/>
                                <br/>
                                <a href="#">查看详情</a>
                            </div>
                            <div class="clear"></div>
                        </li>
                    }
                }
            </ul>
        </div>
          <div id="pageNum">
            当前页：@Model.PageIndex/@Model.PageCount  每页 @Model.PageSize 总数 @Model.RecordCount
            <a href="@Url.Action("List", "List",
            new { categoryId = ViewBag.categoryId, pageIndex = Model.PageIndex, pageSize = Model.PageSize,pageCount=Model.RecordCount,pageChange="First" })">首页</a>
            <a href="@Url.Action("List", "List",
            new { categoryId = ViewBag.categoryId, pageIndex = Model.PageIndex, pageSize = Model.PageSize,pageCount=Model.RecordCount,pageChange="Up" })">上一页</a>
            <a href="@Url.Action("List", "List",
            new { categoryId = ViewBag.categoryId, pageIndex = Model.PageIndex, pageSize = Model.PageSize,pageCount=Model.RecordCount,pageChange="Next" })">下一页</a>
            <a href="@Url.Action("List", "List",
            new { categoryId = ViewBag.categoryId, pageIndex = Model.PageIndex, pageSize = Model.PageSize,pageCount=Model.RecordCount,pageChange="End" })">尾页</a>
        </div>
    </div>
</div>
